//
//  YPCellFactory.h
//  project
//
//  Created by 姚敦鹏 on 2018/10/12.
//  Copyright © 2018年 rocHome. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@class YPBaseModel;
@class YPBaseTableViewCell;
@class YPBaseCollectionViewCell;

@interface YPCellFactory : NSObject

/**
 cell 工厂

 @param model 模型
 @param tableView tableView
 @param indexPath indexPath
 @return cell
 */
+ (__kindof YPBaseTableViewCell *)createCellWithModel:(YPBaseModel *)model
                                   tableView:(UITableView *)tableView
                                   indexPath:(NSIndexPath *)indexPath;

/**
 cell 工厂
 
 @param model 模型
 @param collectionView collectionView
 @param indexPath indexPath
 @return cell
 */
+ (__kindof YPBaseCollectionViewCell *)createCellWithModel:(YPBaseModel *)model
                              collectionView:(UICollectionView *)collectionView
                                   indexPath:(NSIndexPath *)indexPath;

@end
